<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    
    <title>皇家公司概况</title>
    
    <!-- Custom fonts for this template-->
    <link href="vendor/fontawesome-free/css/all.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
    
    <!-- Custom styles for this template-->
    <link href="css/sb-admin-2.min.css" rel="stylesheet">
	<link rel="stylesheet" href="css/layui.css" tppabs="https://www.layui.site/layui/dist/css/layui.css"  media="all">

</head>

<body id="page-top">

    <!-- Page Wrapper -->
    <div id="wrapper">

        <!-- Sidebar -->
        <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">

            <!-- Sidebar - Brand -->
            <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html">
                <div class="sidebar-brand-icon rotate-n-15">
                    <i class="fas fa-laugh-wink"></i>
                </div>
                <div class="sidebar-brand-text mx-3">VAMTAC<sup>2</sup></div>
            </a>

            <!-- Divider -->
            <hr class="sidebar-divider my-0">

        
           <li class="nav-item active">
               <a class="nav-link" href="index.html">
                   <i class="fas fa-fw fa-tachometer-alt"></i>
                   <span>首页</span></a>
           </li>
           
           <hr class="sidebar-divider">
           
           
           <li class="nav-item">
               <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTwo"
                   aria-expanded="true" aria-controls="collapseTwo">
                   <i class="fas fa-fw fa-table"></i>
                   <span>table</span>
               </a>
           			   <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
           			           <div class="bg-white py-2 collapse-inner rounded">
           
           			               <a class="collapse-item" href="tables.html">table1</a>
           			               <a class="collapse-item" href="table2.html">table2</a>
           			           </div>
           			       </div>
           			   </li>
           			   
           			   <li class="nav-item">
           			       <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUtilities"
           			           aria-expanded="true" aria-controls="collapseUtilities">
           			            <i class="fas fa-fw fa-chart-area"></i>
           			   <span>chart</span>
           			   </a>
           			   <div id="collapseUtilities" class="collapse" aria-labelledby="headingUtilities"
           			           data-parent="#accordionSidebar">
           			           <div class="bg-white py-2 collapse-inner rounded">
           
           			               <a class="collapse-item" href="pie.html">chart1</a>
           			               <a class="collapse-item" href="lunbo.html">chate2</a>
           
           			           </div>
           			       </div>
           			   </li>
           			   
           			   <hr class="sidebar-divider">
           			   
           			   <!-- Heading -->
           			  
           			  
           			   
           			   <li class="nav-item">
           			       <a class="nav-link" href="others.html">
           			           <i class="fas fa-fw fa-chart-area"></i>
           			           <span>other</span></a>
           			   </li>
			

            <hr class="sidebar-divider d-none d-md-block">

          
            <div class="text-center d-none d-md-inline">
                <button class="rounded-circle border-0" id="sidebarToggle"></button>
            </div>

            <!-- Sidebar Message -->
            
</ul>

<div id="content-wrapper" class="d-flex flex-column">

        <table class="layui-hide" id="test" lay-filter="test"></table>
		 
		<script type="text/html" id="toolbarDemo">
		  <div class="layui-btn-container">
		    <button class="layui-btn layui-btn-sm" lay-event="getCheckData">获取选中行数据</button>
		  </div>
		</script>
		              
		          
		<script src="js/layui.js" charset="utf-8"></script>
		<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 --> 
		 
		<script>
		layui.use('table', function(){
		  var table = layui.table;
		  
		  table.render({
		    elem: '#test'
		    ,url: 'js/tableshuju.json'
		    ,toolbar: '#toolbarDemo'
		    ,cols: [[
		      {type:'radio'}
		      ,{field:'id', width:80, title: 'ID', sort: true}
		      ,{field:'username', width:80, title: '用户名'}
		      ,{field:'sex', width:80, title: '性别', sort: true}
		      ,{field:'city', width:80, title: '城市'}
		      ,{field:'sign', title: '签名', minWidth: 100}
		      ,{field:'experience', width:80, title: '积分', sort: true}
		      ,{field:'score', width:80, title: '评分', sort: true}
		      ,{field:'classify', width:80, title: '职业'}
		      ,{field:'wealth', width:135, title: '财富', sort: true}
		    ]]
		    ,page: true
		  });
		  
		  //头工具栏事件
		  table.on('toolbar(test)', function(obj){
		    var checkStatus = table.checkStatus(obj.config.id); //获取选中行状态
		    switch(obj.event){
		      case 'getCheckData':
		        var data = checkStatus.data;  //获取选中行数据
		        layer.alert(JSON.stringify(data));
		      break;
		    };
		  });
		});
		</script>


    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.bundle.min.js"></script>

    <!-- Core plugin JavaScript-->
    <script src="js/jquery.easing.min.js"></script>

    <!-- Custom scripts for all pages-->
    <script src="js/sb-admin-2.min.js"></script>

    <!-- Page level plugins -->
    <script src="js/jquery.dataTables.min.js"></script>
    <script src="js/dataTables.bootstrap4.min.js"></script>

    <!-- Page level custom scripts -->
    <script src="js/datatables-demo.js"></script>

</body>

</html>